/*摄影区逻辑代码
--------------------------------------------------------------*/

//获取遮罩层关闭按钮
var shadeCloseBtn = document.querySelectorAll(".close-btn");

//获取视频区外层包裹
var shade = document.querySelectorAll(".shade");

for (var i = 0;i < shadeCloseBtn.length;i ++) {
    shadeCloseBtn[i].index = i;
    shadeCloseBtn[i].onclick = function (params) {
        var _this = this;

        // shade[this.index].style.opacity = "0";

        // setTimeout(shadeMaskLeave(this.index),800) 
        startMove(shade[this.index], {opacity: 0}, function () {
            shade[_this.index].style.display = "none";
        })  

        for (var i = 0;i < videoWrapperVideo.length;i ++) {
            videoWrapperVideo[i].pause();   
            videoWrapperVideo[i].muted = true;
        }
    }
}


var aContent02Wrapper01A = document.querySelectorAll(".content02-wrapper01 a");
var videoWrapperVideo = document.querySelectorAll(".video-wrapper video");


for (var i = 0;i < aContent02Wrapper01A.length;i ++) {
    aContent02Wrapper01A[i].index = i;
    aContent02Wrapper01A[i].onclick = function (params) {

        shade[this.index].style.display = "block";
        
        shade[this.index].style.opacity = "1";
    }
}




